<%@ page import="com.util.Constant" %>
<%@ page import="com.pojo.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/3/15
  Time: 16:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link rel="stylesheet" href="/layui/css/layui.css" media="all">
<script src="/layui/layui.js"></script>
<ul class="layui-nav" lay-filter="">
    <li class="layui-nav-item"><a href="/jsp/allgoods.jsp">主页</a></li>
    <li class="layui-nav-item"><a href="/jsp/losesearch.jsp">我拾取到物品</a></li>
    <li class="layui-nav-item"><a href="/jsp/getsearch.jsp">我丢失物品了</a></li>
    <li class="layui-nav-item"><a href="/jsp/thisme.jsp">
        <%
            Object o = request.getSession().getAttribute(Constant.USER_SESSION);
            try{
                String userName = ((User)o).getUserName();
                out.println(userName);
            }catch (Exception e){
                e.printStackTrace();
            }finally {

            }
        %></a>
    </li>
</ul>
